<?php
$login = true;
define('LOGINPAGE',true);
include_once 'include/include.php';
######## 创建需要的类开始 ######################
c_create::createClass('admin');
$admin = new admin();
######## 创建需要的类开始 ######################


if ($_POST[username]){
	if ($admin->userLogin($_POST[username],$_POST[password])){
		header("location: index.php");
	}else {
		$outvar[meg] = "您输入帐号或者密码有误！";
	}
}elseif($_POST) {
	$outvar[meg] = "请先填写完成用户名、密码！";
}

outFile("login");
?>